home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / im-switch.prerm < prev    next >
Text File  |  2008-01-08  |  499b  |  30 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. ua_remove () {
  5.     update-alternatives \
  6.         --remove xinput-$1 \
  7.         /etc/X11/xinit/xinput.d/$2 ;
  8. }
  9.  
  10. case "$1" in
  11.     remove|upgrade|deconfigure)
  12.         # remove defaults
  13.         ua_remove all_ALL default
  14.         ua_remove all_ALL default-xim
  15.         # remove nones
  16.         ua_remove all_ALL none
  17.         ua_remove th_TH th-xim
  18.         ;;
  19.     failed-upgrade)
  20.         ;;
  21.     *)
  22.         echo "prerm called with unknown argument \`$1'" >&2
  23.         exit 1
  24.     ;;
  25. esac
  26.  
  27.  
  28.  
  29. exit 0
  30.